package com.wx.fresh.custom.controller;

import com.wx.fresh.common.util.CommonResult;
import com.wx.fresh.custom.vo.productVo.EvaluateOutVO;
import com.wx.fresh.custom.vo.productVo.InEvaluateVO;
import com.wx.fresh.custom.vo.productVo.OutEvaluateVO;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Dshzs月
 * @version 1.0.0
 * @ClassName CustomerEvaluateController.java
 * @Description TODO
 * @createTime 2022年04月21日 16:27:00
 */
@RestController
@RequestMapping("evaluate")
public class CustomerEvaluateController {

    @ApiOperation(value = "商品评价", response = EvaluateOutVO.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name="productId",value="商品id",required=true,paramType="form"),
            @ApiImplicitParam(name="userId",value="用户id",required=true,paramType="form"),
            @ApiImplicitParam(name="evaluate",value="评价",required=true,paramType="form")
    })
    @GetMapping("/evaluateGoods")
    public CommonResult<EvaluateOutVO> evaluateGoods(@RequestBody InEvaluateVO evaluate){
        return null;
    }

    @ApiOperation(value = "评价列表", response = OutEvaluateVO.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name="userId",value="用户id",required=true,paramType="form"),
    })
    @GetMapping("/getEvaluateListAll")
    public CommonResult<OutEvaluateVO> getEvaluateListAll(@RequestBody InEvaluateVO evaluate){
        return null;
    }

}
